_onSummaryItemClicked: function(summaryItem, button) {
if (summaryItem.source.handleSummaryClick()) {
this._setClickedSummaryItem(null);
- } else if (!this._clickedSummaryItem) {
- this._setClickedSummaryItem(summaryItem, button);
} else {
- this._setClickedSummaryItem(null);
+ this._setClickedSummaryItem(summaryItem, button);
}
this._updateState();
_onSummaryBoxPointerUngrabbed: function() {
this._summaryBoxPointerState = State.HIDING;
- this._setClickedSummaryItem(null);
this._unlock();
+ if (this._summaryBoxPointerItem == this._clickedSummaryItem)
+ this._setClickedSummaryItem(null);
+
if (this._summaryBoxPointerItem.source.notifications.length == 0) {
this._summaryBoxPointer.actor.hide();
this._hideSummaryBoxPointerCompleted();